<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
			<input type="text" style=" width: 150px;height: 38px" name = 'search_key'>
            <input type="submit" class="btn btn-success " value="搜索">
<div>
    <table class="table table-hover">
        <tr>
            <th>员工号</th>
            <th>员工姓名</th>
            <th>员工年龄</th>
            <th>员工性别</th>
            <th>员工部门</th>
            <th>员工职位</th>
            <th>员工薪资</th>
        </tr>
        {% for p in rest %}
        <tr>
            <td>{{p.id}}</td>
            <td>{{p.name}}</td>
            <td>{{p.age}}</td>
            <td>{{p.sex}}</td>
            <td>{{p.department}}</td>
            <td>{{p.position }}</td>
            <td>{{ p.money}}</td>
        </tr>
        {% endfor %}
    </table>
</div>
</body>
</html>